package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yp
 * @since 2021-10-23
 */
@Repository
public interface StudentMapper extends BaseMapper<Student> {


    Student selectByLoginId(Long id);

    void updateByLoginId(Long id, Student student);

    void updateByStuNumber(String stuNumber, Student student);

    void deleteByStuNumber(String stuNumber);

    List<Student> selectByStudent(@Param("student") Student student);
}
